// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, postBodyRequest, getNoAuthRequest, exportPost } from '@/libs/axios';
//获取市场信息数据
export const getMarketDataAPI = params => postRequest('/submarker/getByPage', params);
//市场信息增加
export const addMarketDataAPI = params => postRequest('/submarker/add', params);
//批量删除市场信息数据
export const delMarketDataByIdsAPI = params => postRequest('/submarker/delByIds', params);
//删除市场账号
export const delByIdsMarketAccountAPI = params => postRequest('/submarketPerson/delByIds', params);
//导入市场信息
export const importMarketDataByIdsAPI = params => postBodyRequest('/submarker/import', params);
//修改市场信息数据
export const updateMarketDataAPI = params => postRequest('/submarker/update', params);
//获取院校列表
export const getSchoolDataAPI = () => postRequest('/schoolCode/getAll');
//导出全部市场基本信息数据
export const exportAllMarketDataAPI = () => exportPost('/submarker/exportAll');
//导出部分分市场基本信息数据
export const exportBatchMarketDataAPI = params => exportPost('/submarker/exportBatch', params);
//市场信息列表
export const getAllMarketDataAPI = () => postRequest('/submarker/getAll');
//市场账号分页获取
export const getPageDataAPI = params => postRequest('/submarketPerson/getPage', params);
export const getRoleDataAPI = () => postRequest('/submarketPerson/getRole');
//添加市场账号
export const addMarketAccountAPI = params => postRequest('/submarketPerson/add', params);
//修改市场账号
export const updateMarketAccountAPI = params => postRequest('/submarketPerson/update', params);

//部分导出市场账号
export const exportBatchMarketAccountAPI = params => exportPost('/submarketPerson/exportBatch', params);
//导出全部市场基本信息数据
export const exportAllMarketAccountDataAPI = () => exportPost('/submarketPerson/exportAll');
//禁用启用
export const forbiddenMarketAccountAPI = params => postRequest('/submarketPerson/forbidden', params);
//密码重置
export const passwordResetAPI = params => postRequest('/submarketPerson/passwordReset', params);
